package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallIntegrationOrderDO;
import com.starlink.model.request.MallIntegrationOrderRequest;
import com.starlink.model.vo.MallIntegrationOrderVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallIntegrationOrderDtoMapper {

    MallIntegrationOrderDtoMapper INSTANCE = Mappers.getMapper(MallIntegrationOrderDtoMapper.class);

    /**
    * DO to VO
    * @param mallIntegrationOrderDO
    * @return
    */
    MallIntegrationOrderVO do2VO(MallIntegrationOrderDO mallIntegrationOrderDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallIntegrationOrderDO request2DO(MallIntegrationOrderRequest request);
}
